package com.hk.housekeeping.utils;

public class PageUtils<T> {
    private int currentPage = 1;       //当前页，默认为第一页
    private int pageSize = 5;          //每页显示条数，默认显示5条
    private int totalCount;            //总条数
    private T data;                    //分页内容

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public PageUtils() {
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }
}
